<!--
 * @Description:
 * @Author: huacong
 * @Date: 2021-08-02 19:46:52
 * @LastEditTime: 2021-10-29 20:16:45
 * @LastEditors: huacong
-->

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
  <title>Vue.js example</title>
  <script src="../../dist/vue.js"></script>
</head>

<body>
  <div id="app">
    <p>{{msg}}</p>
  </div>
</body>
<script>
  // boot up the demo
  var demo = new Vue({
    el: "#app",
    template: "<div class='ceshi'>template--{{msg}}</div>",
    data: {
      msg: "123ssss",
    },
    mounted() {
      console.log(this);
    },
    methods: {
      name() {
        console.log(123)
      }
    },
  });
</script>

</html>
